package com.itbuka.feign;

import com.itbuka.domain.User;
import com.itbuka.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "user")
public interface UserFeign {

    /**
     * 条件查询用户表
     */
    @PostMapping("/User/selectList")
    Result<List<User>> select(@RequestBody User user);
}